import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-default/index.css'
import locale from 'element-ui/lib/locale/lang/en'
import App from './App'
import router from './router'
import store from './store'
import echarts from 'echarts'
import '@/icons' // icon
import '@/permission' // 权限

Vue.use(ElementUI, { locale })
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false
/**
 * 方法
 *
 * beforeCreate
 *
 * create
 *
 * breforeMount
 *
 * mounted
 *
 *      beforeUpdate
 *
 * 数据更新
 *
 *      updated
 *
 * beforeDestory
 *
 * destoryed
 *
 *
 * 属性
 * el     ---id
 * data   --数据
 * watch  --监听数据old , new
 * computed --计算属性 （数据变更触发）
 * metheds -- functions
 */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
